package AIbyDavid;
import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;
public class TestTheif {
	Theif t;
	@Before
	public void init(){
		t=new Theif();
	}
	@Test
	public void testGenerateCode(){
		String s=t.generateCode();
		assertTrue(s.length()==50);
	}
	@Test
	public void testCompareTo(){
		Theif a=new Theif();
		Theif b=new Theif();
		assertTrue(a.compareTo(b)==a.codeFitness-b.codeFitness);
	}
}
